package com.zy.scwproject.config;

import com.zy.scwproject.component.OssTemplate;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @Author: zy 690748807@qq.com
 * @Description:
 * @Date: 2024/5/19 20:31
 * @Version: 1.0
 * @name 方法名字：
 */
@SpringBootConfiguration
public class AppProjectConfig {

    @Bean
    @ConfigurationProperties(prefix ="oss")//把配置文件以oss开头的内容注入
    public OssTemplate oosTemplate(){

        return new OssTemplate();

    }

}
